How to control a fan using a digital thermostat